package com.example.firstboot.service;

import com.example.firstboot.entity.AppPatients;
import com.example.firstboot.mapper.AppPatientsMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class AppPatientsService {
    @Resource
    private AppPatientsMapper appPatientsMapper;

    public int savePatients(String paccount, String department, String departmenttime, String daccount) {
      return appPatientsMapper.savePatients(paccount,department,departmenttime,daccount);}

    public List<AppPatients> checkRepeat(String paccount, String department, String departmenttime, String daccount) {
        return appPatientsMapper.checkRepeat(paccount,department,departmenttime,daccount);
    }
}
